<div class="page-template-template-tags-php">
<div class="page-title">Categories</div>

<section class="general-wrapper company">
                <section class="company-names company-list-home">
<?php 
global $wpdb;

$display_cats = array();
$display_cats[] = get_categories('parent=113');
$display_cats[] = get_categories('parent=160');
$display_cats[] = get_categories('parent=60');
$display_cats[] = get_categories('parent=117');
$display_cats[] = get_categories('parent=28');
$display_cats[] = get_categories('parent=168');
$display_cats[] = get_categories('parent=179');
$display_cats[] = get_categories('parent=186');

//echo 'total cats '.count($display_cats);
//print_r($display_cats);
foreach($display_cats as $catA)
{
	foreach($catA as $c)
	{
		$arrCategory[$c -> cat_ID] = $c -> name;
	}
}


		$cut = ceil( count($arrCategory)/4 ); // number of tags at column
						
        $capital = '';
        $i = 0; // iterator
						
		$cutter = $cut;
		
		 $output = '<ul style="width:140px">';
		 
		 foreach ( $arrCategory as $key => $val ) {
                            $i++;
							//print_r($post); exit;
                           if ( $i > $cutter ) {
                                    $output .= '</ul><ul style="width:140px">';
                                    $cutter = $cutter + $cut;
                                }
                                $output .= '<li><a style="color:#007AC9; font-size:16px" href="'.get_category_link($key).'">' . $val . '</a> </li>';
                        }
                        echo $output . '</ul>';
?>

<div class="clearfix"></div><!-- Just to increase height automatically -->
</section>


</section>


</div>